php find part of string in array

146

php find part of string in array -

foreach($array as $item){
  if(strpos($item,"mysearchword")!== false){
    echo 'found';
  }
}

Comments

Submit
0 Comments